package com.haixiaoke.saas.repository.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.repository.core.BaseEntity;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * 订单退款回调记录对象 biz_order_wechat_refund_record
 * 
 * @author panda
 * @date 2023-05-05
 */
@Data
@Builder
public class OrderWechatRefundRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单id */
    private String outTradeNo;

    /** 微信订单id */
    private String transactionId;

    /** 商户退款单号 */
    private String outRefundNo;

    /** 微信退款单号 */
    private String refundId;

    /** 订单金额 */
    private Double totalFee;

    /** 应结订单金额(当该订单有使用非充值券时，返回此字段。应结订单金额=订单金额-非充值代金券金额，应结订单金额&lt;=订单金额。) */
    private Double settlementTotalFee;

    /** 申请退款金额 */
    private Double refundFee;

    /** 退款金额(退款金额=申请退款金额-非充值代金券退款金额，退款金额&lt;=申请退款金额) */
    private Double settlementRefundFee;

    /** 退款状态 */
    private String refundStatus;

    /** 退款成功时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date successTime;

    /** 退款成功时间string */
    private String successTimeStr;

    /** 退款入账账户 */
    private String refundRecvAccout;

    /** 退款资金来源 */
    private String refundAccount;

    /** 退款发起来源 */
    private String refundRequestSource;

    /** 用户退款金额 */
    private Integer cashRefundFee;


}